package net.dgg.rz.production.dao;

import net.dgg.rz.production.entity.OrderJson;
import net.dgg.rz.production.entity.dto.OrderJsonDto;
import net.dgg.rz.production.entity.dto.UpdateGsscOrderDto;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * Created by zyou on 2018/12/14.
 */
@Component
public interface OrderJsonDao {

    int insertSelective(OrderJson record);

    OrderJson selectByPrimaryKey(Long id);

    OrderJson selectByOrderNo(String orderNo);

    OrderJsonDto selectByOrderNoDto(String orderNo);

    OrderJson selectByOrderId(Long orderId);

    int updateByPrimaryKeySelective(OrderJson record);

    int updateByPrimaryKey(OrderJson record);

    /**
     * 刷新号码加密问题
     */
    int queryJsonCount();
    /**
     * 刷新号码加密问题
     */
    List<OrderJson> queryJsons();
    /**
     * 刷新号码加密问题
     */
    void updateJson(OrderJson orderJson);

    /**
     * 修改订单信息
     * @param updateGsscOrder
     * @return
     */
    int updateOrderInfo(UpdateGsscOrderDto updateGsscOrder);
}
